package com.sg.file.receive.api.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 文件接收的响应
 * Created by asus on 2018/7/8.
 */
public class FileReceiveResponse implements Serializable {

    private static final long serialVersionUID = -2499305429944684448L;
    //接收成功的文件集合
    private List<FileCreateDTO> succFiles = new ArrayList<>();
    //接收失败的文件集合
    private List<String> failFiles = new ArrayList<>();

    private String message = "";

    public List<FileCreateDTO> getSuccFiles() {
        return succFiles;
    }

    public void setSuccFiles(List<FileCreateDTO> succFiles) {
        this.succFiles = succFiles;
    }

    public List<String> getFailFiles() {
        return failFiles;
    }

    public void setFailFiles(List<String> failFiles) {
        this.failFiles = failFiles;
    }

    public void addSuccFile(FileCreateDTO succInfo){
        succFiles.add(succInfo);
    }
    public void addFailFile(String fileName){
        failFiles.add(fileName);
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
